import request from '@/utils/request'


// 查询可选线路列表
export function getLinesByClientId(data) {
  return request({
    url: '/tms/dispatch/getLinesByClientId',
    method: 'post',
    data: data
  })
}

// 查询车次列表
export function getScheduleByLineId(data) {
  return request({
    url: '/tms/dispatch/getScheduleByLineId',
    method: 'post',
    data: data
  })
}

// 查询车辆列表
export function getScheduleDtlByScheduleId(data) {
  return request({
    url: '/tms/dispatch/getScheduleDtlByScheduleId',
    method: 'post',
    data: data
  })
}

// 派车保存
export function dispatch(data) {
  return request({
    url: '/tms/dispatch/dispatch',
    method: 'post',
    data: data
  })
}

export function getDispatchOrder(ids) {
  return request({
    url: '/tms/dispatch/getDispatchOrder/'+ids,
    method: 'get'
  })
}

export function getCarrierUser(ids) {
  return request({
    url: '/tms/dispatch/getCarrierUser/',
    method: 'get'
  })
}

export function againDispatch(data) {
  return request({
    url: '/tms/dispatch/againDispatch/',
    method: 'post',
    data:data
  })
}
